{% if object.parent %}
    <div class="comment-child">
        <img src="{{ object.user.avatar }}" alt="{{ object.user.username }}"/>
        <div class="info">
            <span class="username">{{ object.user.username }}</span>
            {% if object.user == article.author %}
                <span class="blogger">博主</span>
            {% endif %}
            <span style="padding-right: 0; margin-left: -5px">回复</span>
            <span class="username">{{ object.get_parent_username }}</span>
        </div>
        <div class="comment-content">{{ object.content|safe }}</div>
        <p class="info">
            <span class="comment-time">{{ object.cretae_time|date:'%Y/%m/%d %H:%M' }}</span>
            <a href="javascript:;" class="btn-reply" data-targetid="{{ object.nid }}"
               data-targetname="{{ object.user.username }}">回复</a>
        </p>
    </div>
{% else %}
    <li>
        <div class="comment-parent">
            <img src="{{ object.user.avatar }}" alt="{{ object.user.username }}"/>
            <div class="info">
                <span class="username">{{ object.user.username }}</span>
                {% if object.user == article.author %}
                    <span class="blogger">博主</span>
                {% endif %}
            </div>
            <div class="comment-content">{{ object.content|safe }}</div>
            <p class="info info-footer">
                <span class="comment-time">{{ object.cretae_time|date:'%Y/%m/%d %H:%M' }}</span>
                <a href="javascript:;" class="btn-reply" data-targetid="{{ object.nid }}"
                   data-targetname="{{ object.user.username }}">回复</a>
            </p>
        </div>
    </li>
{% endif %} 


